home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 05.zip
/
BS1 part 5
/
BaudBandit.adf
/
REXX
/
DeComp.baud
< prev
next >
Wrap
Text File
|
1992-02-24
|
576b
|
32 lines
/* BB Auto Decompress example */
Options Results
parse arg dest
Status D
dir=Result
/* strip path from file */
parse var dest temp'/'name
if name='' then parse var dest temp':'name
/* get file extension */
parse var name temp'.'ext
ext=Upper(ext)
arcmd=''
if ext='ARC' then arcmd='Arc <* x'
if ext='ZOO' then arcmd='Zoo <* x'
if ext='LZH' then arcmd='LZ <* x'
if ext='LHA' then arcmd='LZ <* x'
if ext='ZIP' then arcmd='UnZip <*'
if ext='DMS' then arcmd='DMS <* WRITE'
if arcmd='' then do
say 'Unknown archive type'
exit
end
Address command 'CD' dir||'a'x arcmd dest